<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/view/conf/farmtag.tld" prefix="PF"%>
<!-- Single button -->
<div class="btn-group hidden-xs" style="float: right;">
	<button type="button" class="btn btn-default btn-sm dropdown-toggle"
		style="margin-left: 4px;" data-toggle="dropdown" aria-haspopup="true"
		aria-expanded="false">
		<c:if test="OPTYPE"></c:if>
		<c:if test="${OPTYPE=='KNOW' }">
		 创建知识&nbsp;<span class="caret"></span>
		</c:if>
		<c:if test="${OPTYPE=='FQA' }">
		提问&nbsp;<span class="caret"></span>
		</c:if>
	</button>
	<ul class="dropdown-menu">
		<c:if test="${OPTYPE=='KNOW' }">
			<li><a target="<PF:ParameterValue key="config.sys.link.newwindow.target"/>"
				href="know/add.do?typeid=${typeid}&groupid=${groupid}"><span
					class="glyphicon glyphicon-book"></span>&nbsp;创建文档知识</a></li>
			<li><a target="<PF:ParameterValue key="config.sys.link.newwindow.target"/>"
				href="know/webdown.do?typeid=${typeid}&groupid=${groupid}"><span
					class="glyphicon glyphicon-cloud"></span>&nbsp;下载网页知识 </a></li>
			<PF:IfParameterEquals key="config.sys.opensource" val="wcp">
				<li><a target="<PF:ParameterValue key="config.sys.link.newwindow.target"/>"
					href="pro/wordup.do?typeid=${typeid}&groupid=${groupid}"><span
						class="glyphicon glyphicon-file"></span>&nbsp;word创建知识 </a></li>
			</PF:IfParameterEquals>
			<li style="margin: 0px; padding: 0px;"><hr style="margin: 0px;" /></li>
			<li><a target="<PF:ParameterValue key="config.sys.link.newwindow.target"/>"
				href="webfile/add.do?typeid=${typeid}&groupid=${groupid}"><span
					class="glyphicon glyphicon-file"></span>&nbsp;上传文件资源 </a></li>
		</c:if>
		<c:if test="${OPTYPE=='FQA' }">
			<li><a target="<PF:ParameterValue key="config.sys.link.newwindow.target"/>"
				href="webquest/add.do?typeid=${typeid}&groupid=${groupid}"><span
					class="glyphicon glyphicon-question-sign"></span>&nbsp;创建提问 </a></li>
		</c:if>
	</ul>
</div>
